package cn.smvc.wechat.test.service.impl;

import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.smvc.wechat.test.dao.WeChatAccountDao;
import cn.smvc.wechat.test.entity.WeChatAccount;
import cn.smvc.wechat.test.service.WeChatAccountService;

@Service
public class WeChatAccountServiceImpl implements WeChatAccountService {

	@Autowired
	private WeChatAccountDao weChatAccountDao;
	
	@Override
	public WeChatAccount get(int id) {
		WeChatAccount account = null;
		try {
			account = weChatAccountDao.get(id);
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return account;
	}

}
